package com.openbravo.data.loader.dialect.SQLite;

import com.openbravo.data.loader.I_Session;
import com.openbravo.data.loader.SentenceFind;
import com.openbravo.data.loader.SerializerReadInteger;
import com.openbravo.data.loader.StaticSentence;
import com.openbravo.data.loader.dialect.SessionDB;

//@tudo（重新行进定义 ）
public class SessionDBSQLite  implements SessionDB {

    public String TRUE() {
        return "TRUE";
    }
    public String FALSE() {
        return "FALSE";
    }
    public String INTEGER_NULL() {
        return "CAST(NULL AS INTEGER)";
    }
    public String CHAR_NULL() {
        return "CAST(NULL AS CHAR)";
    }

    public String getName() {
        return "HSQLDB";
    }

    public SentenceFind getSequenceSentence(I_Session s, String sequence) {
        return new StaticSentence(s, "CALL NEXT VALUE FOR " + sequence, null, SerializerReadInteger.INSTANCE);
    }
}